//
//  Fraction.h
//  02-ClassObjective-C
//
//  Created by dllo on 16/7/5.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
@property NSInteger numerator;
@property NSInteger denominator;

- (instancetype)initWithNumerator:(NSInteger)numerator denominator:(NSInteger)denominator;
+ (instancetype)fractionWithNumerator:(NSInteger)numerator denominator:(NSInteger)denominator;

//两个分数相加
- (Fraction *)AddOfFraction:(Fraction *)fraction;

//两个分数相减
- (Fraction *)reductionOfFration:(Fraction *)fraction;

//两个分数相乘
- (Fraction *)multiplyOfFraction:(Fraction *)fraction;

//两个分数相除
- (Fraction *)divideOfFraction:(Fraction *)fraction;





@end
